import xlwings as xw
app = xw.App(visible=False, add_book=False)
workbook = app.books.open('F:\\python\\第4章\\出库表.xlsx')
worksheet = workbook.sheets['Sheet1']
data1 = worksheet.range('B5').value
data2 = worksheet.range('B5:B8').value
data3 = worksheet.range('B5:D5').value
data4 = worksheet.range('B5:D8').value
print(data1)
print(data2)
print(data3)
print(data4)
workbook.close()
app.quit()
